<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<table border="1" style="min-width: 350px;text-align: center;vertical-align:middle">
	<thead>
	<tr>
		<th>课程</th>	
		<th>成绩</th>	
	</tr>
	</thead>
	<tbody>
	<c:forEach items="${cjlist}" var="c">
		<tr>
		<td>${c.course.name}</td>
		<td><input type="text" value="${c.grade}" onchange="xg(${c.id},this.value)"></td>
		</tr>
	</c:forEach>
	</tbody>
</table>